package com.jml.spring.springboot.springmvc.config;


import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
//前端控制器
public class SpittrWebAppInitializer  extends AbstractAnnotationConfigDispatcherServletInitializer {
	//加载根配置信息
	@Override
	protected Class<?>[] getRootConfigClasses() {
		return new Class[]{RootConfig.class };
	}
	//xml文件加载
	@Override
	protected Class<?>[] getServletConfigClasses() {
		return new Class[]{WebConfig.class};
	}
	//表示springmvc拦截的请求,"/"表示拦截所有的请求
	@Override
	protected String[] getServletMappings() {
		return new String[]{"/"};
	}
}
